/*
 * BloqueHash.h
 *
 *  Created on: 29/10/2012
 *      Author: pablo
 */

#ifndef BLOQUEHASH_H_
#define BLOQUEHASH_H_

#include<vector>
#include"Registro.h"

using namespace std;

class BloqueHash{

private:
	unsigned int id;
	unsigned int tamDispersion;
	unsigned int cantRegs;
	vector<Registro*> registros;
	unsigned int espacioLibre;

public:

	const static unsigned int TAMANIO_BLOQUE = 1024;

	unsigned int getId();
	unsigned int getTamDispersion();
	unsigned int getCantRegistros();
	Registro* getRegistro(unsigned int pos);
	unsigned int getEspLibre();
	void agregarRegistro(Registro*);
	void quitarRegistro(Registro*);


	BloqueHash(unsigned int);
	~BloqueHash();
};

#endif /* BLOQUEHASH_H_ */
